import EmptyLayout from '@/layout/EmptyLayout'
import Inner from "@/views/inner/Inner.vue";
import NotFound404 from '@/views/inner/404.vue';
const defaultRoutes = [
  {
    path: "/inner",
    name: "内部页面",
    component: Inner,
    meta: {
      activePath: '/'  // 打开非Menu页面选择当前激活menu
    }
  },
  {
    path: '/error',
    component: EmptyLayout,
    redirect: 'noRedirect',
    name: 'Error',
    meta: { title: '错误页', icon: 'bug' },
    children: [
      {
        path: '401',
        name: 'Error401',
        component: () => import('@/views/inner/401.vue'),
        meta: { title: '401' },
      },
      {
        path: '404',
        name: 'Error404',
        component: () => NotFound404,
        meta: { title: '404' },
      },
    ],
  },
  {
    path: '/:pathMatch(.*)*',
    name: '404',
    component: NotFound404
  }
];

export default defaultRoutes;
